package cn.kgc.blog.dao;

import cn.kgc.blog.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    User login(@Param("username") String username, @Param("password") String password);
    User select(@Param("id") int id);
    int update(@Param("username") String username,@Param("password") String password,@Param("id") int id);
    List<User> selectAll();
    int insert(User user);
    int delete(int id);
}
